import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  { path: "/", redirect: "/home" },
  { path: "/login", component: () => import("@/views/Login.vue") },
  { path: "/mine", component: () => import("@/views/Mine.vue") },
  { path: "/home", component: () => import("@/views/Home.vue") },
];

const router = new VueRouter({
  routes,
});

export default router;
